package com.example.common.constant;

public class WareConstant {
    public enum PurchaseStatusEnum {
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),RECEIVE(2,"已接受"),
        FINISH(3,"已完成"),HAS_ERROR(4,"有异常");

        private int code;

        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }
    public enum PurchaseDetailStatusEnum {
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),BUYING(2,"购买中"),
        FINISH(3,"已完成"),HAS_ERROR(4,"采购失败");

        private int code;

        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        PurchaseDetailStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }
    public enum WareTaskStatusEnum {

        UnLock("未锁定", 0),
        Locked("锁定", 1),
        hasUnLocked("已解锁", 2);


        private String msg;
        private Integer code;

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }

        WareTaskStatusEnum(String msg, Integer code){
            this.code = code;
            this.msg = msg;
        }
}
